﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InstrumentReadRecordExtra.aspx.cs" Inherits="Runda.CMS.Portal.ContractFollowUp.InstrumentReadRecordExtra" %>


<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <script src="../Content/global.js" type="text/javascript"></script>

    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Tab/tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function changeReadRecord() {
            if (document.getElementById('ReadNumType').value == '1') {
                document.getElementById("trT").style.display = "block";
                document.getElementById("tra").style.display = "none";
            } else {
                document.getElementById("trT").style.display = "none";
                document.getElementById("tra").style.display = "block";              
            }
        }
        window.onload = function() {
            changeReadRecord();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
     
    <table class="mnubar" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td width="9">
                    <img hspace="3" src="../Content/Menu/mnu_vSpacer.gif" />
                </td>
                <td class="icMenu" nowrap>
                    <asp:LinkButton ID="lnkbtnSaveAndClose" runat="server" OnClick="lnkbtnSaveAndClose_Click"><span class="menu" title="保存" onclick="window.execScript(this.action);"><img class="mnuBtn" src="../Content/Menu/SaveClose_16_blue.gif"><span class="mnuBtn">保存</span></span></asp:LinkButton>
                    <img src="../Content/Menu/separator.gif">
                    <span class="menu" title="关闭" onclick="window.close();">
                        <img class="mnuBtn" src="../Content/Menu/Close_16_blue.gif"><span class="mnuBtn">关闭</span></span>
                </td>
            </tr>
        </tbody>
    </table>
    <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
    </div>
    <div id="areaForm" class="area">
        <table cellspacing="0" cellpadding="0" width="100%">
            <tbody>
                <tr>
                    <td valign="top">
                        <div style="display: inline" id="appForm_tab0" class="tab">
                            <asp:HiddenField ID="hiddenMaintainID" runat="server" />       
                             <asp:TextBox ID="hiddenLastRecordNum" runat="server" Visible="false"></asp:TextBox>
                            <asp:TextBox ID="hiddenLastRecordDate" runat="server" Visible="false"></asp:TextBox>                   
                            <table style="table-layout: fixed" id="Section1" cellspacing="0" cellpadding="3"
                                width="100%">
                                <tr>
                                    <td align="right">
                                        读数方式
                                    </td>
                                    <td align="left">
                                        <asp:DropDownList ID="ReadNumType" runat="server" onchange="changeReadRecord();">
                                            <asp:ListItem Text="计数总数" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="读数日平均数" Value="2"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                            <table style="table-layout: fixed" id="Table1" cellspacing="0" cellpadding="3"
                                width="100%">
                                <tr>
                                    <td align="right">
                                         上一次日平均数
                                    </td>
                                    <td align="left">
                                     <asp:Label ID="lastDailyNum" runat="server"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                            <table style="table-layout: fixed" id="Section2" cellspacing="0" cellpadding="3"
                                width="100%">
                                <tr id="trT">
                                    <td align="right">
                                        读数总数
                                    </td>
                                    <td align="left">
                                        <rad:RadNumericTextBox ID="ReadNum" runat="server">
                                        </rad:RadNumericTextBox>
                                    </td>
                                </tr>
                                <tr style="display:none"  id="trA">
                                    <td align="right">
                                        读数日平均数
                                    </td>
                                    <td align="left">
                                        <rad:RadNumericTextBox ID="ReadNumAverageDaily" runat="server">
                                        </rad:RadNumericTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        读数时间
                                    </td>
                                    <td align="left">
                                        <rad:RadDatePicker ID="ReadNumDate" runat="server" Culture="Chinese (People's Republic of China)"
                                            Skin="WebBlue" Width="130px">
                                            <DateInput Skin="WebBlue">
                                            </DateInput>
                                            <Calendar Skin="WebBlue">
                                            </Calendar>
                                        </rad:RadDatePicker>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
